// mytime3.h -- Time class with friends
#ifndef MYTIME3_H_
#define MYTIME3_H_

#include <iostream>

class Time
{
private:
    int _hours;
    int _minutes;
public:
    Time() {_hours = _minutes  = 0;};
    Time(int hours, int minutes = 0);
    ~Time() {};

    void AddMin(int minutes);
    void AddHour(int hours);
    void Reset(int hours = 0, int minutes = 0);
    Time operator+(const Time & t) const;
    Time operator-(const Time & t) const;
    Time operator*(double n) const;
    friend Time operator*(double m, const Time & t) {return t * m;};
    friend std::ostream & operator<<(std::ostream & os, const Time & t);
};
#endif // mytime3.h
